<template>
	<view class="">我是个人中心:{{ text }}</view>
</template>

<script setup>
import { getCurrentInstance, reactive, ref, defineExpose, defineEmits, defineProps, watch } from 'vue';
import { onLoad } from '@dcloudio/uni-app';
import { useStore } from 'vuex';
const { proxy } = getCurrentInstance();
const { commit, dispatch } = useStore();
let params = defineProps(['text']);
console.log(params.text, 'text')
watch(
	params.text,
	(newVal, oldVal) => {
		console.log(newVal, oldVal, 'newVal, oldVal');
	},
	{
		deep: true,
		immediate: true
	}
);
</script>

<style scoped module lang="scss">
.active {
	color: red;
}
</style>
